<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />


</head>


<body>

	<div class="place">
	<span>位置：</span>
	<ul class="placeul">
	<li><a>首页</a></li>
	<li><a>签约需求管理</a></li>
	<li><a>签约需求列表</a></li>
	</ul>
	</div>

	<div class="rightinfo">
	<div class="tools">

	<form id="form1" name="form1" method="get" action="{:U('/Home/Sign/sign_list')}">

		<div style="float: left; margin-bottom: 15px;">
			<input name="title" style="height: 38px;" type="text" class="dfinput" placeholder="搜索编号/自媒体名称" id="user" value="<?php echo isset($_GET['title'])?$_GET['title']:"";?>" />
		</div>

		<div style="float: left; margin-bottom: 15px;">
			<input name="" style="height: 40px;" type="submit" class="btn" value="搜索"/>
		</div>

	</form>
	</div>
	<table class="tablelist">
		<thead>
		<tr>
		<th width="40">编号</i></th>
		<th width="100">自媒体名称</th>
		<th>任务信息</th>
		<th>任务要求</th>
		<th width="80">当前人数</th>
		<th width="80">总人数</th>
		<th width="50">性别</th>
		<th width="90">创建日期</th>
		<th width="150">截止日期</th>
		<th width="60">操作</th>
		</tr>
		</thead>
		<tbody>

		<foreach name='signlist' item='v'>
		<tr>
		 <td>{$v.id}</td>
		  <td>{$v.media_name}</td>
		  <td>{$v.title}</td>
		  <td>{$v.demand}</td>
		  <td>{$v.candidate}</td>
		  <td>{$v.number}</td>
		  <td>
		  	<switch name="v.sex" >
				<case value="0">全部</case>
				<case value="1">男</case>
				<case value="2">女</case>
				<default />未知
				</switch>
		  </td>
			<td>{$v.starttime|date="Y-m-d",###}</td>
			<td>{$v.deadline|date="Y-m-d",###} 23:59:59</td>
			<td>
			<if condition="$v.type eq 0">
			<a href="{:U('/Home/Sign/signjoin_list',array('sid'=>$v['id']))}" class="tablelink">查看</a>
			<else />
			<a class="tablelink">已结束</a>
			</if>
			</td>
		</tr>
	   </foreach>
		</tbody>
	</table>
	<style>.pages a,.pages span {
	display:inline-block;
	padding:2px 5px;
	margin:0 1px;
	border:1px solid #f0f0f0;
	-webkit-border-radius:3px;
	-moz-border-radius:3px;
	border-radius:3px;
}
.pages a,.pages li {
	display:inline-block;
	list-style: none;
	text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
	margin:0;
}
.pages a:hover{
	border-color:#50A8E6;
}
.pages span.current{
	background:#50A8E6;
	color:#FFF;
	font-weight:700;
	border-color:#50A8E6;
}</style>

   <div class="pages"><br />
			<div align="right">{$page}</div>
   </div>

	</div>

</body>
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>
<script src="__PUBLIC__/admin/Js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/admin/Js/jquery.combo.select.js"></script>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	$(function() {
		$('#u1_input').comboSelect();
	});
</script>
</html>
